@layout("/common/_form.html",{js:["/assets/shangxin/shangxin_add.js"],css:["/assets/expand/module/formSelects/formSelects-v4.css"]}){

<form class="layui-form" id="shangxinForm" lay-filter="shangxinForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">图片<span style="color: red;">*</span></label>
                        <div class="layui-upload">
                            <input type="hidden" value="" id="picval" name="pic">
                            <button type="button" class="layui-btn" id="pic">上传图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="filePreview">
                            </div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">标题<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">描述<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="ms" name="ms" placeholder="请输入描述" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">跳转<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="tz" lay-filter="tz">
                                <option value="1">红色路线</option>
                                <option value="2">路线详情</option>
                                <option value="3">外部URL</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12" style="display: none;" id="dt">
                        <label class="layui-form-label">跳转路径<span style="color: red;">*</span></label>
                        <div class="layui-input-block" id="tplhtml">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="cancel">&emsp;取消&emsp;</button>
    </div>

</form>

@}